﻿using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using FlanProjectData.GameObjects;
using FlanProjectData.Helpers;
using FlanProjectData.Sprites;
using FlanProjectData.Characters;

namespace FlanProjectData.Characters
{
    public class Player : Character
    {
        private Logger logger = new Logger("Player");

        #region Properties

        #region Character Stats

        [ContentSerializerIgnore]
        public CharacterStat CurrentStats { get; set; }
        public CharacterStat BaseStats { get; set; }

        [ContentSerializerIgnore]
        public Equipement Equipement { get; set; }

        #endregion

        #region Character Skills

        public List<String> Skills { get; set; }

        #endregion

        #region Character Portrait

        public Image Portrait { get; set; }

        #endregion

        #endregion

        #region Constructors

        public Player()
        {
            Equipement = new Equipement();
        }

        public Player(String name)
        {
            Name = name;
            Equipement = new Equipement();
        }

        public Player(String name, CharacterStat baseStats)
        {
            Name = name;
            BaseStats = baseStats;
            Equipement = new Equipement();
        }

        #endregion

        //add an item to the equiment and return the old item
        public Item addItemEquipement(Item theIteme)
        {
            Item monItem = this.Equipement.changeEquipement(theIteme);
            return monItem;
        }
    }
}
